package cn.edu.demo.pojo.result;

import cn.edu.demo.pojo.Driver;
import cn.edu.demo.pojo.Orders;
import cn.edu.demo.pojo.Car;
import cn.edu.demo.pojo.OrdersWithBLOBs;

public class SureResult {


    private String d_id;
    private String d_point;
    private String carnum;
    private long phone;
    private String d_name;
    private String c_type;
    private String o_id;

    public SureResult(){}

    public SureResult(Driver driver, Car car, OrdersWithBLOBs surelist){
        this.d_id = surelist.getDriverId();
        this.d_point = surelist.getStartPoint();
        this.carnum = surelist.getCarNumber();
        this.o_id = surelist.getOrderId();
        this.d_name = driver.getFullnameD();
        this.phone = driver.getPhone();
        this.c_type = car.getType();
    }


    /*public SureResult(String o_id, String d_id, String d_point, String carnum, long phone, String d_name, String c_type) {
        this.d_id = d_id;
        this.d_point = d_point;
        this.carnum = carnum;
        this.phone = phone;
        this.d_name = d_name;
        this.c_type = c_type;
        this.o_id = o_id;
    }*/

    public SureResult(Orders orders) {
    }

    public String getD_id() {
        return d_id;
    }

    public void setD_id(String d_id) {
        this.d_id = d_id;
    }

    public String getD_point() {
        return d_point;
    }

    public void setD_point(String d_point) {
        this.d_point = d_point;
    }

    public String getCarnum() {
        return carnum;
    }

    public void setCarnum(String carnum) {
        this.carnum = carnum;
    }

    public long getPhone() {
        return phone;
    }

    public void setPhone(long phone) {
        this.phone = phone;
    }

    public String getD_name() {
        return d_name;
    }

    public void setD_name(String d_name) {
        this.d_name = d_name;
    }

    public String getC_type() {
        return c_type;
    }

    public void setC_type(String c_type) {
        this.c_type = c_type;
    }
    public String getO_id() {
        return o_id;
    }

    public void setO_id(String o_id) {
        this.o_id = o_id;
    }

}
